<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<!-- Copyright 1997 The Open Group, All Rights Reserved -->
<title>fgrep</title>
</head><body bgcolor=white>
<center>
<font size=2>
The Single UNIX &reg; Specification, Version 2<br>
Copyright &copy; 1997 The Open Group

</font></center><hr size=2 noshade>
<h4><a name = "tag_001_014_700">&nbsp;</a>NAME</h4><blockquote>
fgrep - search a file for a fixed-string pattern (<b><a href="intro.html#tag_001_003_003">LEGACY</a></b>)
</blockquote><h4><a name = "tag_001_014_701">&nbsp;</a>SYNOPSIS</h4><blockquote>
<pre><code>

fgrep <b>[</b> -c| -l<b>][</b>-invx<b>] </b>-e <i>pattern_list </i><b>[</b><i>file</i>...<b>]</b>

fgrep <b>[</b> -c| -l<b>][</b>-invx<b>] </b>-f <i>pattern_list </i><b>[</b><i>file</i>...<b>]</b>

fgrep <b>[</b> -c| -l<b>][</b>-invx<b>] </b><i>pattern_list </i><b>[</b><i>file</i>...<b>]</b>
</code>
</pre>
</blockquote><h4><a name = "tag_001_014_702">&nbsp;</a>DESCRIPTION</h4><blockquote>
The name
<i>fgrep</i>
is an obsolescent version equivalent to
<i><a href="grep.html">grep</a></i>
<b>-F</b>.
<p>
A command invoking the
<i>fgrep</i>
utility with the
<b>-e</b>
option specified is equivalent to the command:
<pre>
<code>
grep -F <b>[</b> -c| -l<b>][</b>-invx<b>] </b>-e <i>pattern_list </i><b>[</b><i>file</i>...<b>]</b>
</code>
</pre>
<p>
A command invoking the
<i>fgrep</i>
utility with the
<b>-f</b>
option specified is equivalent to the command:
<pre>
<code>
grep -F <b>[</b> -c| -l<b>][</b>-invx<b>] </b>-f <i>pattern_list </i><b>[</b><i>file</i>...<b>]</b>
</code>
</pre>
<p>
A command invoking the
<i>fgrep</i>
utility with
neither the
<b>-e</b>
nor the
<b>-f</b>
option
operand specified is equivalent to the command:
<pre>
<code>
grep -F <b>[</b> -c| -l<b>][</b>-invx<b>] </b><i>pattern_list </i><b>[</b><i>file</i>...<b>]</b>
</code>
</pre>
</blockquote><h4><a name = "tag_001_014_703">&nbsp;</a>OPTIONS</h4><blockquote>
Refer to
<i><a href="grep.html">grep</a></i>.
</blockquote><h4><a name = "tag_001_014_704">&nbsp;</a>OPERANDS</h4><blockquote>
Refer to
<i><a href="grep.html">grep</a></i>.
</blockquote><h4><a name = "tag_001_014_705">&nbsp;</a>STDIN</h4><blockquote>
Refer to
<i><a href="grep.html">grep</a></i>.
</blockquote><h4><a name = "tag_001_014_706">&nbsp;</a>INPUT FILES</h4><blockquote>
Refer to
<i><a href="grep.html">grep</a></i>.
</blockquote><h4><a name = "tag_001_014_707">&nbsp;</a>ENVIRONMENT VARIABLES</h4><blockquote>
Refer to
<i><a href="grep.html">grep</a></i>.
</blockquote><h4><a name = "tag_001_014_708">&nbsp;</a>ASYNCHRONOUS EVENTS</h4><blockquote>
Refer to
<i><a href="grep.html">grep</a></i>.
</blockquote><h4><a name = "tag_001_014_709">&nbsp;</a>STDOUT</h4><blockquote>
Refer to
<i><a href="grep.html">grep</a></i>.
</blockquote><h4><a name = "tag_001_014_710">&nbsp;</a>STDERR</h4><blockquote>
Refer to
<i><a href="grep.html">grep</a></i>.
</blockquote><h4><a name = "tag_001_014_711">&nbsp;</a>OUTPUT FILES</h4><blockquote>
Refer to
<i><a href="grep.html">grep</a></i>.
</blockquote><h4><a name = "tag_001_014_712">&nbsp;</a>EXTENDED DESCRIPTION</h4><blockquote>
Refer to
<i><a href="grep.html">grep</a></i>.
</blockquote><h4><a name = "tag_001_014_713">&nbsp;</a>EXIT STATUS</h4><blockquote>
Refer to
<i><a href="grep.html">grep</a></i>.
</blockquote><h4><a name = "tag_001_014_714">&nbsp;</a>CONSEQUENCES OF ERRORS</h4><blockquote>
Refer to
<i><a href="grep.html">grep</a></i>.
</blockquote><h4><a name = "tag_001_014_715">&nbsp;</a>APPLICATION USAGE</h4><blockquote>
Unlike
<i><a href="grep.html">grep</a></i>
<b>-F</b>,
multiple
<b>-e</b>
or
<b>-f</b>
options produce undefined results.
Adjacent newline characters in the
<i>pattern</i>
operand or
<b>-e</b>&nbsp;<i>pattern_list</i>
option-argument also produce undefined results.
<p>
Applications should migrate to the
<i><a href="grep.html">grep</a></i>
<b>-F</b>
command.
</blockquote><h4><a name = "tag_001_014_716">&nbsp;</a>EXAMPLES</h4><blockquote>
Refer to
<i><a href="grep.html">grep</a></i>.
</blockquote><h4><a name = "tag_001_014_717">&nbsp;</a>FUTURE DIRECTIONS</h4><blockquote>
Refer to
<i><a href="grep.html">grep</a></i>.
</blockquote><h4><a name = "tag_001_014_718">&nbsp;</a>SEE ALSO</h4><blockquote>
<i><a href="grep.html">grep</a></i>.
</blockquote><hr size=2 noshade>
<center><font size=2>
UNIX &reg; is a registered Trademark of The Open Group.<br>
Copyright &copy; 1997 The Open Group
<br> [ <a href="../index.html">Main Index</a> | <a href="../xshix.html">XSH</a> | <a href="../xcuix.html">XCU</a> | <a href="../xbdix.html">XBD</a> | <a href="../cursesix.html">XCURSES</a> | <a href="../xnsix.html">XNS</a> ]

</font></center><hr size=2 noshade>
</body></html>
